package com.shumei.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shumei.dao.pojo.ULogin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectKey;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface ULoginMapper extends BaseMapper<ULogin> {
    Long getULoginid(String accountnum, String password);


//    @Insert(value = "insert into u_login(accountnum,password,create_time,update_time) " +
//            "values(#{accountnum},#{password},#{createTime},#{updateTime})")
//    @SelectKey(statement="select LAST_INSERT_ID()",keyProperty = "uId",before = false,resultType = Long.class)
//    Integer testInsert1(ULogin uLogin);

}
